#include <stdio.h>
#include "tool.h"
#include "io.h"

int main(int argc,char **argv)
{

	linedata *pHead1=NULL,*pHead2=NULL,*p1=NULL,*p2=NULL;

	if(argc<3)
	{
		printf("please input two filepath\n");
		return 0;
	}


	pHead1=ReadFile2Lines(*(argv+1));
	pHead2=ReadFile2Lines(*(argv+2));

	
	p1=pHead1;
	p2=pHead2;
	while(p1!=NULL)
	{
		
		if(FindExists(pHead2,p1->str)==0)
		{

			printf("file 1 string %s not in file 2\n",p1->str);
		}
		
		p1=p1->pNext;

	}
	
	

	FreeFileReaderData(pHead1);
	FreeFileReaderData(pHead2);
	return 0;

}
